package restaurant.gui.simulation;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;

/**
 * This JPanel contains the clock rate used in the simulation.
 * 
 * @author Odessa
 */
@SuppressWarnings("serial")
public class ClockRatePanel extends JPanel
{

	/**
	 * Creates the panel and adds the text field.
	 */
	public ClockRatePanel() {
		setBorder(new EmptyBorder(0, 5, 0, 5));
		setLayout(new GridLayout(1, 0, 0, 0));

		JTextField ClockRateField = new JTextField();
		ClockRateField.setHorizontalAlignment(SwingConstants.CENTER);
		ClockRateField.setText("Clock Rate");
		add(ClockRateField);
		ClockRateField.setColumns(10);
	}

}
